package demo0506;

import java.io.FileInputStream;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) throws IOException {
        String filePath="2.txt";
        try(FileInputStream fis=new FileInputStream(filePath)){
            int data;
            while ((data= fis.read())!=-1){
                System.out.println((char)data);
            }
        }catch(IOException e){
            e.printStackTrace();
        }

    }

}
